package com.tnr.scgcxx.service.safty;

import java.util.List;
import java.util.Map;

import org.dq.base.page.Page;
import org.dq.base.page.PageParam;

import com.tnr.scgcxx.dto.RoleDto;
import com.tnr.scgcxx.model.Role;

public interface RoleService {
	
	public List<Role> getAllRoles();

	Page getRolesPage(PageParam pageParam);

	public boolean addRole(RoleDto dto);

	public boolean updateRole(RoleDto dto);

	
	public Role getRole(String ro_id);

	public boolean deleteRole(Integer... ro_ids);

	public boolean updateRolesStatus(String status, Integer[] ro_ids);

	public Map<String,Object> getRoleMenus(Integer roleId);

	public boolean confirmRoleMenus(Integer roleId, Integer[] menuIds);

}
